﻿class myGrid extends egret.Shape {
    public constructor() {
        super();
        this.onDraw();
    }

    private onDraw(): void {
        this.graphics.beginFill(0xff0000);
        this.graphics.drawRect(0, 0, 50, 50);
        this.graphics.endFill();
        this.graphics.beginFill(0x00ffff);
        this.graphics.drawRect(50, 50, 50, 50);
        this.graphics.endFill();
        this.graphics.beginFill(0x00ff00);
        this.graphics.drawRect(50, 0, 50, 50);
        this.graphics.endFill();
        this.graphics.beginFill(0xff00ff);
        this.graphics.drawRect(0, 50, 50, 50);
        this.graphics.endFill();
    }

}